﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XNAProject.GameElements;
using Microsoft.Xna.Framework;
using XNAProject.Core;
using Microsoft.Xna.Framework.Graphics;
using XNAProject.Enumerations;

namespace XNAProject.Ships
{
    class Frigat : Ship
    {
        public Frigat(Game game, ShipFaceing faceing, Vector2 HexaPosition)
            :base(game, HexaPosition)
        {
            SetFaceing(new Vector3(0f, 4.7f, 0f), new Vector3(94.8f, 4.7f, 0f), new Vector3(0, 4.7f, 0f)
            , new Vector3(93.6f, 4.7f, 0f), new Vector3(80.1f, 4.7f, 0f), new Vector3(91.7f, 4.7f, 0f)
            , new Vector3(85, 4.7f, 0f), new Vector3(90.6f, 4.7f, 0f));
            Face(faceing);

            SetTranslation(new Vector3(0, 30, 30));
            moveUpBorder = new Vector2(8, 3);

            name = "Frigat";
            defense = 400;
            offense = 200;
            sight = 4;
            health = 400;
            oil = 400;
            cost = 2000;
            consumption = 30;
            movement = 2;

            Scale = 0.35f;
            Hue = 0.5f;
            vLightDirection = new Vector4(0.5f, 1.0f, 0.0f, 1.0f);     
        }

        protected override void LoadContent()
        {
            //effect = Game.Content.Load<Effect>("Models/Ships/Cruiser/Shader");                                         //load stuff

            //colorMap = Game.Content.Load<Texture2D>("Models/Ships/Cruiser/ColorMap");
            //normalMap = Game.Content.Load<Texture2D>("Models/Ships/Cruiser/NormalMap");

            model = Game.Content.Load<Model>("Models/Ships/Frigat/Ship");
            modelBones = new Matrix[model.Bones.Count];
            model.CopyAbsoluteBoneTransformsTo(modelBones);
        }

        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);
        }
        
    }
}
